<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceDomain extends Model {

	//
	protected $table = 'device_domain';

	protected $fillable = ["cate_id", "device_id"];

	public function domain()
	{
		return $this->hasOne("App\Models\Domains", "id", "cate_id");
	}

}
